<template>
  <div id="app">
    <el-container>
      <!-- 顶部导航栏 -->
      <el-header>
        <nav-bar></nav-bar>
      </el-header>
      
      <!-- 主要内容区域 -->
      <el-main>
        <router-view></router-view>
      </el-main>
      
      <!-- 底部区域 -->
      <el-footer>
        <div class="footer">
          <p>© 2024 仿小米商城 版权所有</p>
        </div>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
import NavBar from './components/NavBar.vue'

export default {
  name: 'App',
  components: {
    NavBar
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
}

.el-header {
  padding: 0;
  height: auto !important;
}

.el-main {
  padding: 0;
}

.footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f5f5f5;
}
</style> 